import Vue from 'vue'
import App from './App.vue'
import './assets/reset.css'
import FastClick from 'fastclick'
FastClick.attach(document.body);
import router from './router/router'
import Axios from 'axios'
import VueAxios from 'vue-axios'
import VueLazyload from 'vue-lazyload'
import loadingImg from './assets/img/loading.gif'
import vuex from 'vuex'
import store from './store/index'
// import '../node_modules/bootstrap/dist/css/bootstrap.css'
Vue.use(vuex);
// const store = new vuex.Store({
//   state:{
//       id:''
//   },//相当于vue中的data
//     mutations:{
//       // add(state,num){
//       //     // state 就是上面的 num是外部传入的值
//       //     state.id+=num;
//       // }
//         saveId(state,sid){
//             state.id=sid
//         }
//     } //相当于vue中的methods
// });
// 分离出去写
Vue.use(VueLazyload, {
    loading: loadingImg,
    attempt: 1
});
Vue.use(VueAxios,Axios);
Vue.config.productionTip = false;

new Vue({
  render: h => h(App),
    router,
    store,
}).$mount('#app');
